package com.stone.design.patterns.observer;

/**
 * @author Stone
 * @version V1.0
 * @description:
 * @date 18/4/3 21:31
 * @email redsstone@163.com
 */
public class ObserverB implements Observer{

    Subject mSubject;

    public ObserverB(Subject subject) {
        mSubject = subject;
        mSubject.registerObserver(this);
    }

    @Override
    public void update(String s) {
        System.out.println("ObserverB : " + s);
    }
}
